Erosion corrosion often occurs in oil pipeline system. The main reason for erosion corrosion is the impact of particles on the wall. DPM model was used to study the erosion effect of solid particles on the pipe wall, analyze the flow characteristics of π?shaped pipe, and study the influence of fluid velocity, particle mass flow rate, particle diameter and density on the erosion corrosion rate of the pipe. The simulated results show that the erosion corrosion of π?shaped pipe is the most serious at the elbow. The maximum erosion corrosion rate increases with the increase of fluid velocity and particle mass flow rate. As the particle diameter and density increase, the erosion effect is weakened.